package cn.sxt.yxl.controller.head;
import java.util.Scanner;
//3测试
public class Test{
	public static void main(String[] args) {
		Distence dis=new Distence();
		Point p1=new Point(2, 5);
		Point p2=new Point(3, 4);
		double d=dis.distence(p1,p2);
		//System.out.println(d);
		
			 double var=0;
		 	 double a[]=new double[10]; System.out.println("依次输入十个数："); 
		 	 double sum1=0; double sum2=0;
		 	 for(int i=0;i<a.length;i++){	
		 		 	
		 		 Scanner in=new Scanner(System.in);	
		 		 a[i]=in.nextDouble();	
		 		 sum1+=a[i];	sum2+=(a[i]*a[i]);	
		 		 var=Math.sqrt((sum2-((sum1*sum1)/10))/(9));	
		 		 }
		 	 System.out.println("The mean is："+sum1/a.length);
		 	 System.out.println("The standard deviation is："+var);	
	}
}
